﻿package pete.tools{	import flash.utils.getTimer;		public class StopWatch	{		private var startTime:int            = 0;		private var stopTime:int             = 0;		private var duration:int             = 0;		private var durationToSeconds:Number = 0;				public function StopWatch ()		{					}				public function start ()		{			startTime = getTimer ();		}				public function stop ()		{			stopTime = getTimer ();			duration = stopTime - startTime;			durationToSeconds = duration / 1000;			trace ("Duration: " + durationToSeconds + "s");		}				}}